package com.yky.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 项目组织机构
 * 
 * @author vimesly
 * 
 */

@SuppressWarnings("serial")
@Entity
@Table(name = "work_project_organization")
public class ProjectOrganization implements Serializable {

	private Integer id;

	private String principalName; // 项目负责人姓名
	private String principaCertificateType; // 负责人证件类型
	private String principaCertificateNumber; // 负责人证件号
	private String principaTelephone; // 负责人办公电话
	private String principaPhone; // 负责人手机
	private String principaEmail; // 负责人邮箱

	private Project project; // 所属项目

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "principal_name")
	public String getPrincipalName() {
		return principalName;
	}

	public void setPrincipalName(String principalName) {
		this.principalName = principalName;
	}

	@Column(name = "principa_certificate_type")
	public String getPrincipaCertificateType() {
		return principaCertificateType;
	}

	public void setPrincipaCertificateType(String principaCertificateType) {
		this.principaCertificateType = principaCertificateType;
	}

	@Column(name = "principa_certificate_number")
	public String getPrincipaCertificateNumber() {
		return principaCertificateNumber;
	}

	public void setPrincipaCertificateNumber(String principaCertificateNumber) {
		this.principaCertificateNumber = principaCertificateNumber;
	}

	@Column(name = "principa_telephone")
	public String getPrincipaTelephone() {
		return principaTelephone;
	}

	public void setPrincipaTelephone(String principaTelephone) {
		this.principaTelephone = principaTelephone;
	}

	@Column(name = "principa_phone")
	public String getPrincipaPhone() {
		return principaPhone;
	}

	public void setPrincipaPhone(String principaPhone) {
		this.principaPhone = principaPhone;
	}

	@Column(name = "principa_email")
	public String getPrincipaEmail() {
		return principaEmail;
	}

	public void setPrincipaEmail(String principaEmail) {
		this.principaEmail = principaEmail;
	}

	@ManyToOne
	@JoinColumn(name = "project_id")
	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

}
